// pages/index/business/text/index.js\
import {article} from "../../../../utils/api/module/wenzhang";

Page({
    data: {
        currentData: '',
        gbConfig: getApp().globalData.config,
    },
    onLoad: function (options) {
        console.log(options);
        this.getDetail(options.id);
    },
    getDetail(id){
        article({
            "id": id,
        }).then(res => {
            this.setData({
                currentData: res.data.data
            })
        })
    }
})